<!DOCTYPE html>
<html>
    <head>
        <title>蓝旭第三次作业</title>
    </head>
    <body>
        <h1>第二题</h1>
        <script>
           var str1='I Love You';
            var a=new Array();
            var b=new Array();
            a=str1.split(' ');
            a=a.reverse();
            str1=a.join(' ');
            console.log(str1);
            document.write(str1);
        </script>
    </body>
</html>